package com.jk.entity;/**
 * @description: TODO
 * @author xyx
 * @date 2022/6/8 19:34
 * @version 1.0
 */

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;

/**
 * @description: TODO
 * @author xyx
 * @date 2022/6/8 19:34
 * @version 1.0
 */
@Data
@Document(indexName = "clo_shopcart")
public class ShopCartEntity {
    private static final long serialVersionUID = 1L;
    @Id
    @Field(type = FieldType.Integer)
    private Integer shopCartId;
    private Integer clothType;
    @Field(type = FieldType.Text,analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    private String clothName;
    @Field(type = FieldType.Text)
    private String clothColor;
    @Field(type = FieldType.Text)
    private String clothDescribe;

    private Integer clothSize;
    private String  clothImg;
    private BigDecimal clothPrice;
    private Integer shopCount;
    private BigDecimal shopSumPrice;
}
